<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>骡窝窝景点门票</title>
    <!--<meta name="description" content="骡窝窝景点门票为您提供上海景点门票,上海景点门票预订,上海旅游景点大全等门票预订服务。"/>-->

    <link rel="stylesheet" type="text/css" href="public/css/base.min.css"/>
    <script type="text/javascript" src="/js/jquery/jquery.min.js"></script>
    <script src="/js/plugins/jrender/jrender.js"></script>
    <script src="/js/common.js"></script>
</head>

<body>
<header class="a-hd">
    <p class="a-tt"></p> <a href="javascript:history.back();" class="back">返回</a>
</header>
<section class="l-srhWrap">
    <div class="a-srh">
        <div class="a-iptBox">
            <input type="text" class="a-ipt" placeholder="请输入地址/景点名" id="keyword"
                   value=""/>
        </div>
        <input type="button" class="a-btn" value=""/>
    </div>
</section>
<!--<nav class="l-nav">-->
<!--<a href="#" class="l-cur">推荐&darr;</a>-->
<!--<a href="#">人气&darr;</a>-->
<!--<a href="#">级别&darr;</a>-->
<!--<a href="#">订单&darr;</a>-->
<!--</nav>-->
<section id="vp">
    <ul class="l-list" id="target_list" render-loop="list">
        <li>
            <img  alt="" render-src="list.coverUrl">
            <span class="l-price" render-html="list.tickets.price"></span>
            <a class="l-name" render-html="list.name" render-key="list.id" render-fun="handle"></a>
            <p class="l-pep">3人去过</p>
            <p render-html="list.address"></p>
        </li>
        <!--<li>-->
        <!--<img src="http://upload.17u.com/uploadfile/scenerypic_common/134_100/2014/07/17/2/201407171513092422204.jpg"-->
        <!--alt="">-->
        <!--<span class="l-price">￥26</span> <a href="d_182127" class="l-name">上海七宝袖珍人影戏馆</a>-->
        <!--<p class="l-pep">9人去过</p>-->
        <!--<p>上海市闵行区七宝老街北固弄8号</p>-->
        <!--</li>-->

    </ul>
    <!--<div id="page">-->
        <!--<span class="b_span fir-page disabled"> <em></em>首页</span><span class="b_span page disabled">上页</span>-->
        <!--<span class="b_span">1/15</span><a href="#" class="page">下页</a>-->
        <!--<a href="#" class="las-page"> <em></em>尾页</a>-->
    <!--</div>-->
</section>
<footer class="a-ft">
    <div class="a-ftNav"><a href="#">意见反馈</a> | <a href="#">关于我们</a> |
        <a href="#"><font color="red">微信:8684</font>
        </a>| <a href="/index.html">首页</a>
    </div>
    <div class="copyRight">©2005-2014 8684.com</div>
</footer>

</body>
<script>
    var placeId = getParams().placeId;
    var placeName = decodeURI(getParams().placeName);
    $(".a-tt").html(placeName);
    $(".a-ipt").val(placeName);
    var param = {};
    if (placeId) {
        param.placeId = placeId;
    }
    $.get("/viewPoints", param, function (data) {
        // console.log(data);
        $("#vp").renderValues(data, {
            handle: function (ele, val) {
                ele.href = "zhengwen.html?id=" + val;
            }
        });
    });
    $(".a-btn").click(function () {
        var keyword = $("#keyword").val();
        if (keyword) {
            param.keyword = keyword;
        }else {
            param.keyword = ""
        }
        $.get("/viewPoints", param, function (data) {
            // console.log(data);
            $("#vp").renderValues(data, {
                handle: function (ele, val) {
                    ele.href ="zhengwen.html?id=" + val;
                }
            });
        });
    });
</script>
</html>
